<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
color: blue;
        }
        .box{color: red;

        }
        #box{color: burlywood;

        }
    </style>
    <!-- 如果一个 有多个选择器作用它，最终是由优先级生效 如果优先级相同则层叠型起作用 -->
</head>
<body>
    <div class="box" id="box">1222</div>
    
</body>
</html>